home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
datecomp
/
datecomp.frm
< prev
next >
Wrap
Text File
|
1994-07-11
|
3KB
|
108 lines
VERSION 2.00
Begin Form Form1
BackColor = &H00FFFFFF&
BorderStyle = 3 'Fixed Double
Caption = "DateComp Demo"
ClientHeight = 1575
ClientLeft = 1095
ClientTop = 1485
ClientWidth = 6300
Height = 1980
Left = 1035
LinkTopic = "Form1"
ScaleHeight = 1575
ScaleWidth = 6300
Top = 1140
Width = 6420
Begin Frame Frame1
Caption = "Last Compare Result"
Height = 795
Left = 3240
TabIndex = 6
Top = 180
Width = 2895
Begin Label Label3
BackColor = &H00FFFFFF&
Height = 285
Left = 150
TabIndex = 7
Top = 360
Width = 2625
End
End
Begin CommandButton Command2
Cancel = -1 'True
Caption = "E&xit"
Height = 375
Left = 1620
TabIndex = 5
Top = 990
Width = 1245
End
Begin CommandButton Command1
Caption = "&Compare"
Height = 375
Left = 150
TabIndex = 4
Top = 990
Width = 1245
End
Begin TextBox Text2
Height = 285
Left = 1650
TabIndex = 2
Text = "07-11-94"
Top = 450
Width = 1245
End
Begin TextBox Text1
Height = 285
Left = 180
TabIndex = 0
Text = "01-01-80"
Top = 450
Width = 1245
End
Begin Label Label2
BackColor = &H00FFFFFF&
Caption = "Date #2"
Height = 225
Left = 1650
TabIndex = 3
Top = 240
Width = 1245
End
Begin Label Label1
BackColor = &H00FFFFFF&
Caption = "Date #1"
Height = 225
Left = 180
TabIndex = 1
Top = 240
Width = 1245
End
End
Sub Command1_Click ()
N = DateComp(CVar(Text1), CVar(Text2))
Select Case N
Case Is < 0
Txt$ = "Less Than"
Case Is > 0
Txt$ = "Greater Than"
Case Else
Txt$ = "Equal To"
End Select
Label3.Caption = "Date #1 is " & Txt$ & " Date #2"
End Sub
Sub Command2_Click ()
End
End Sub